package com.lantosec.hmrp.modules.sysdata.vo;

import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.sysdata.entity.SysDataFormExt;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 表单扩展字段 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-03-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "SysDataFormExt对象", description = "表单扩展字段")
public class SysDataFormExtVO extends BaseVO<SysDataFormExt> {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    private String dataFormExtId;
    @ApiModelProperty(value = "表单ID")
    private String dataFormId;

    @Override
    public SysDataFormExt convertToEntity() {
        return new SysDataFormExt(this);
    }

    @ApiModelProperty(value = "字段名")
    private String fieldName;
    @ApiModelProperty(value = "字段类型")
    private String fieldType;

    public SysDataFormExtVO(SysDataFormExt entity) {
        this.dataFormExtId = entity.getDataFormExtId();
        this.dataFormId = entity.getDataFormId();
        this.fieldName = entity.getFieldName();
        this.fieldType = entity.getFieldType();
        this.comment = entity.getComment();
    }

    @ApiModelProperty(value = "字段注释")
    private String comment;


}
